package package06章_面向对象编程_基础._07encapsulation封装性.exer2;
/**
 * ClassName: BookTest
 * Package: package06章_面向对象编程_基础._07encapsulation封装性.exer2
 * Description:
 *
 * @Author lys
 * @Create 2024/2/16 20:31
 * @Version 1.0
 */


/**
 * @author lys
 * @version 1.0
 * @description: TODO
 * @date 2024/2/16 20:31
 */
public class BookTest {
    public static void main(String[] args) {

        Book book1 = new Book();

        book1.setBookName("剑指Java");
        book1.setAuthor("教育");
        book1.setPrice(180.0);

        System.out.println(book1.showInfo());
        System.out.println("}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}");
        Book book2 = new Book();

        book2.setBookName("剑指Java2");
        book2.setAuthor("教育2");
        book2.setPrice(1802.0);
        System.out.println(book2.showInfo());
    }
}
